package cn.qidd.keep.member.util;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class MemberUtil {

    public static String createNo() {
        return LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyyMMddHHmmssSSS"));
    }

    public static String createNo(String prefix, String suffix) {
        StringBuilder sb = new StringBuilder();
        if (prefix != null)
            sb.append(prefix);
        sb.append(createNo());
        if (suffix != null)
            sb.append(suffix);
        return sb.toString();
    }


}
